package com.wabbei.friendcenter.action;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.webbei.friendcenter.service.MyFriendCenter;

public class CommentFriendCustomsAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	private Long customid;
	private String textContent;
	private Date currentDate;
	private MyFriendCenter friservice;
	private String uname;
	private String sessionName;
	
	public String getSessionName() {
		return sessionName;
	}

	public void setSessionName(String sessionName) {
		this.sessionName = sessionName;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public Date getCurrentDate() {
		return currentDate;
	}

	public void setCurrentDate(Date currentDate) {
		this.currentDate = currentDate;
	}

	public MyFriendCenter getFriservice() {
		return friservice;
	}

	public void setFriservice(MyFriendCenter friservice) {
		this.friservice = friservice;
	}

	

	public Long getCustomid() {
		return customid;
	}

	public void setCustomid(Long customid) {
		this.customid = customid;
	}

	public String getTextContent() {
		return textContent;
	}

	public void setTextContent(String textContent) {
		this.textContent = textContent;
	}
/*
	public String execute(){
		//sessionName=ActionContext.getContext().getSession().get(key);
		sessionName=(String)ServletActionContext.getContext().getSession().get("username");
		currentDate=new Date();
		friservice.InsertNewComment(customid,sessionName,textContent,currentDate);
		System.out.println("sessionName:"+sessionName+".uname:"+uname);
		return SUCCESS;
	}*/
}
